#!/usr/bin/env sh

# Font
FN='kakwafont:size=11'
# Background Commands
NB='#f5f5f5'
# Foreground Commands
NF='#303030'
# Background Prompt
SB='#9370db'
# Foreground Prompt
SF='#FFF'

URL='https://www.startpage.com/do/search?hl=pt&q='
QUERY=$(echo '' | dmenu -fn $FN -i -p "Search: " -nb $NB -nf $NF -sb $SB -sf $SF)

if [ -n "$QUERY" ]; then
	palemoon "${URL}${QUERY}" 2> /dev/null
fi
